import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/dashboard',
    component: Layout,
    redirect: '/dashboard/base',
    name: 'dashboard',
    meta: {
      title: {
        zh_CN: '模板',
        en_US: 'Dashboard',
      },
      icon: 'menu-dashboard',
      orderNo: 0,
    },
    children: [
      {
        path: 'base',
        name: 'DashboardBase',
        component: () => import('@/pages/dashboard/base/index.vue'),
        meta: {
          icon: 'menu-snap',
          title: {
            zh_CN: '列表',
            en_US: 'list',
          },
        },
      },
      {
        path: 'detail',
        name: 'DashboardDetail',
        component: () => import('@/pages/dashboard/base/components/tableJump/Detail.vue'),
        meta: {
          hidden: true,
          icon: 'menu-snap',
          title: {
            zh_CN: '详情页面',
            en_US: 'detailPage',
          },
          activePath: '/dashboard/base',
        },
      },
      {
        path: 'update',
        name: 'DashboardUpdate',
        component: () => import('@/pages/dashboard/base/components/tableJump/Edit.vue'),
        meta: {
          hidden: true,
          icon: 'menu-snap',
          title: {
            zh_CN: '编辑页面',
            en_US: 'updatePage',
          },
          activePath: '/dashboard/base',
        },
      },
      {
        path: 'create',
        name: 'DashboardCreate',
        component: () => import('@/pages/dashboard/base/components/tableJump/Edit.vue'),
        meta: {
          hidden: true,
          icon: 'menu-snap',
          title: {
            zh_CN: '新增页面',
            en_US: 'createPage',
          },
          activePath: '/dashboard/base',
        },
      },
      {
        path: 'drag-line',
        name: 'DashboardImage',
        component: () => import('@/pages/dashboard/dragLine/index.vue'),
        meta: {
          icon: 'menu-image',
          title: {
            zh_CN: '拖拽时间线',
            en_US: 'DragLine',
          },
        },
      },
      {
        path: 'ROI',
        name: 'DashboardROI',
        component: () => import('@/pages/dashboard/roi/index.vue'),
        meta: {
          icon: 'menu-image',
          title: {
            zh_CN: 'ROI',
            en_US: 'ROI',
          },
        },
      },
      {
        path: 'preview',
        name: 'DashboardPreview',
        component: () => import('@/pages/dashboard/preview/index.vue'),
        meta: {
          icon: 'menu-image',
          title: {
            zh_CN: 'preview',
            en_US: 'preview',
          },
        },
      },
    ],
  },
  {
    path: '/material',
    component: Layout,
    redirect: '/material/base',
    name: 'material',
    meta: {
      title: {
        zh_CN: '物料',
        en_US: 'Preview',
      },
      icon: 'menu-preview',
      orderNo: 10,
    },
    children: [
      {
        path: 'base',
        name: 'MaterialBase',
        component: () => import('@/pages/material/base/index.vue'),
        meta: {
          icon: 'menu-preview',
          title: {
            zh_CN: '列表',
            en_US: 'list',
          },
        },
      },
      {
        path: 'ROI',
        name: 'MaterialROI',
        component: () => import('@/pages/material/roi/index.vue'),
        meta: {
          icon: 'menu-image',
          title: {
            zh_CN: 'ROI',
            en_US: 'ROI',
          },
        },
      },
      {
        path: 'split-screen',
        name: 'MaterialSplitScreen',
        component: () => import('@/pages/material/splitScreen/index.vue'),
        meta: {
          icon: 'menu-image',
          title: {
            zh_CN: '分屏',
            en_US: 'splitScreen',
          },
        },
      },
      {
        path: 'xgplayer',
        name: 'MaterialXgplayer',
        component: () => import('@/pages/material/xgplayer/index.vue'),
        meta: {
          icon: 'menu-image',
          title: {
            zh_CN: 'xgplayer',
            en_US: 'xgplayer',
          },
        },
      },
      {
        path: 'item',
        name: 'MaterialItem',
        component: () => import('@/pages/material/item/index.vue'),
        meta: {
          icon: 'menu-preview',
          title: {
            zh_CN: '杂项',
            en_US: 'item',
          },
        },
      },
    ],
  },
];
